gluing schemes